package nccu.service.impl;


import nccu.dao.AccountCodeDao;
import nccu.model.AccountCode;
import nccu.service.AccountCodeManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("accountCodeManager")
public class AccountCodeManagerImpl extends GenericManagerImpl<AccountCode, Long> implements AccountCodeManager {

    //@Autowired
    AccountCodeDao accountCodeDao;

    @Autowired
    public AccountCodeManagerImpl(AccountCodeDao accountCodeDao) {
        super(accountCodeDao);
        this.accountCodeDao = accountCodeDao;
    }
 
    public List<AccountCode> findByCode(String code) {
        return accountCodeDao.findByCode(code);
    }
}